<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>江苏银保助手</title>
    <link rel="stylesheet" href="/static/css/layui.css">

</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">银保助手</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="">控制台</a></li>
            <li class="layui-nav-item"><a href="">权限管理</a></li>
            {#            <li class="layui-nav-item"><a href="">用户</a></li>#}
            <li class="layui-nav-item">
                <a href="javascript:;">其它系统</a>
                <dl class="layui-nav-child">
                    <dd><a href="">邮件管理</a></dd>
                    <dd><a href="">消息管理</a></dd>
                    <dd><a href="">授权管理</a></dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
                    欢迎，{{ request.session.user.username }}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="/logout">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">业绩追踪</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:clickData('/phases_compete');">阶段追踪</a></dd>
                        <dd><a href="javascript:clickData('/compete');">每日追踪</a></dd>
                        {#                        <dd><a href="javascript:;">列表三</a></dd>#}
                        {#                        <dd><a href="">超链接</a></dd>#}
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">解决方案</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:clickData('/phases_compete');">列表一</a></dd>
                        <dd><a href="javascript:;">列表二</a></dd>
                        <dd><a href="">超链接</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">人员管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:clickData('/staff_analyst');">人力分析</a></dd>
                        <dd><a href="javascript:;">列表二</a></dd>
                        <dd><a href="">超链接</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;">
            {#            {% block main %}#}
            <main class="surface-main">
                {#                <span>321321</span>#}
            </main>
            {#            {% endblock %}#}
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        Copyright © 2020 <strong>银保助手</strong>. All Rights Reserved.
    </div>
</div>
<script src="../static/layui.all.js"></script>
<script src="../static/js/jquery-3.4.1.min.js"></script>
<script>
    //JavaScript代码区域
    layui.use('element', function () {
        var element = layui.element;

    });
    {#数据传输#}

    function clickData(aurl) {
        $.ajax({
            url: aurl,
            dataType: "html",
            type: "GET",
            async: "true",
            data: {},
            success: function (data) {
                $('.surface-main').html(data)
                {#alert($('.surface-list').text())#}
            },
            error: function () {
                alert('失败')
            }
        });
    }


</script>
</body>
</html>